<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>phpDocumentor » \Application_Model_Produit</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                    API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
<li><a href="../packages/fr.html"><i class="icon-folder-open"></i> fr</a></li>
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                    Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                    Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
                <span class="label label-info">477</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
                <ul><li>todo 
                <span class="label label-info">1</span>
</li></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
                <span class="label label-info">0</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
                            Javascript is disabled; several features are only available
                            if Javascript is enabled.
                        </div></noscript>
<div class="row">
<div class="span4">
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
<ul class="side-nav nav nav-list">
<li class="nav-header">
<i class="icon-custom icon-method"></i> Methods</li>
<li class="method public "><a href="#decreaseStock" title="decreaseStock :: Diminue le stock du produit"><span class="description">Diminue le stock du produit</span><pre>decreaseStock()</pre></a></li>
<li class="method public "><a href="#delete" title="delete :: Supprime le produit de la BDD"><span class="description">Supprime le produit de la BDD</span><pre>delete()</pre></a></li>
<li class="method public "><a href="#getByCodeBarres" title="getByCodeBarres :: fonction qui complète l'objet à partir des connaissances de la BDD et du code barres du produit"><span class="description">fonction qui complète l'objet à partir des connaissances de la BDD et du code barres du produit</span><pre>getByCodeBarres()</pre></a></li>
<li class="method public "><a href="#getById" title="getById :: fonction qui complète l'objet à partir des connaissances de la BDD et de l'id du produit"><span class="description">fonction qui complète l'objet à partir des connaissances de la BDD et de l'id du produit</span><pre>getById()</pre></a></li>
<li class="method public "><a href="#getCodeBarres" title="getCodeBarres :: "><span class="description">getCodeBarres()
        </span><pre>getCodeBarres()</pre></a></li>
<li class="method public "><a href="#getIdGroupe" title="getIdGroupe :: "><span class="description">getIdGroupe()
        </span><pre>getIdGroupe()</pre></a></li>
<li class="method public "><a href="#getIdProduit" title="getIdProduit :: "><span class="description">getIdProduit()
        </span><pre>getIdProduit()</pre></a></li>
<li class="method public "><a href="#getIdType" title="getIdType :: "><span class="description">getIdType()
        </span><pre>getIdType()</pre></a></li>
<li class="method public "><a href="#getName" title="getName :: "><span class="description">getName()
        </span><pre>getName()</pre></a></li>
<li class="method public "><a href="#getQuantite" title="getQuantite :: "><span class="description">getQuantite()
        </span><pre>getQuantite()</pre></a></li>
<li class="method public "><a href="#save" title="save :: Sauvegarde le produit dans la BDD"><span class="description">Sauvegarde le produit dans la BDD</span><pre>save()</pre></a></li>
<li class="method public "><a href="#setCodeBarres" title="setCodeBarres :: "><span class="description">setCodeBarres()
        </span><pre>setCodeBarres()</pre></a></li>
<li class="method public "><a href="#setIdGroupe" title="setIdGroupe :: "><span class="description">setIdGroupe()
        </span><pre>setIdGroupe()</pre></a></li>
<li class="method public "><a href="#setIdProduit" title="setIdProduit :: "><span class="description">setIdProduit()
        </span><pre>setIdProduit()</pre></a></li>
<li class="method public "><a href="#setIdType" title="setIdType :: "><span class="description">setIdType()
        </span><pre>setIdType()</pre></a></li>
<li class="method public "><a href="#setName" title="setName :: "><span class="description">setName()
        </span><pre>setName()</pre></a></li>
<li class="method public "><a href="#setQuantite" title="setQuantite :: "><span class="description">setQuantite()
        </span><pre>setQuantite()</pre></a></li>
<li class="method public "><a href="#update" title="update :: Met à jour le produit dans la BDD"><span class="description">Met à jour le produit dans la BDD</span><pre>update()</pre></a></li>
<li class="method public "><a href="#vente" title="vente :: Vente du produit en quantité $nbr au client $client avec vente normale, spéciale ou espèce"><span class="description">Vente du produit en quantité $nbr au client $client avec vente normale, spéciale ou espèce</span><pre>vente()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
<li class="nav-header protected">» Protected</li>
<li class="property protected "><a href="#%24code_barres" title="$code_barres :: "><span class="description">$code_barres</span><pre>$code_barres</pre></a></li>
<li class="property protected "><a href="#%24id_groupe" title="$id_groupe :: "><span class="description">$id_groupe</span><pre>$id_groupe</pre></a></li>
<li class="property protected "><a href="#%24id_produit" title="$id_produit :: "><span class="description">$id_produit</span><pre>$id_produit</pre></a></li>
<li class="property protected "><a href="#%24id_type" title="$id_type :: "><span class="description">$id_type</span><pre>$id_type</pre></a></li>
<li class="property protected "><a href="#%24nom" title="$nom :: "><span class="description">$nom</span><pre>$nom</pre></a></li>
<li class="property protected "><a href="#%24quantite" title="$quantite :: "><span class="description">$quantite</span><pre>$quantite</pre></a></li>
</ul>
</div>
<div class="span8">
<a name="%5CApplication_Model_Produit" id="\Application_Model_Produit"></a><div href="../classes/Application_Model_Produit.html" class="element class">
<p class="short_description">Modèle pour les produits</p>
<div class="details">
<p class="long_description"></p>
<table class="table table-bordered"><tr>
<th>author</th>
<td><a href="">Théo Chamley</a></td>
</tr></table>
<h3>
<i class="icon-custom icon-method"></i> Methods</h3>
<a name="decreaseStock" id="decreaseStock"></a><div class="element clickable method public decreaseStock" data-toggle="collapse" data-target=".decreaseStock .collapse">
<h2>Diminue le stock du produit</h2>
<pre>decreaseStock(\Diminution $nbr) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$nbr</h4>
<code>\Diminution</code><p>du stock $nbr</p>
</div>
</div></div>
</div>
<a name="delete" id="delete"></a><div class="element clickable method public delete" data-toggle="collapse" data-target=".delete .collapse">
<h2>Supprime le produit de la BDD</h2>
<pre>delete() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getByCodeBarres" id="getByCodeBarres"></a><div class="element clickable method public getByCodeBarres" data-toggle="collapse" data-target=".getByCodeBarres .collapse">
<h2>fonction qui complète l'objet à partir des connaissances de la BDD et du code barres du produit</h2>
<pre>getByCodeBarres(\code-barres $cb) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$cb</h4>
<code>\code-barres</code><p>du produit $cb</p>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code>\Zend_Exception</code></th>
<td></td>
</tr></table>
</div></div>
</div>
<a name="getById" id="getById"></a><div class="element clickable method public getById" data-toggle="collapse" data-target=".getById .collapse">
<h2>fonction qui complète l'objet à partir des connaissances de la BDD et de l'id du produit</h2>
<pre>getById(\id $id) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$id</h4>
<code>\id</code><p>du produit $id</p>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code>\Zend_Exception</code></th>
<td></td>
</tr></table>
</div></div>
</div>
<a name="getCodeBarres" id="getCodeBarres"></a><div class="element clickable method public getCodeBarres" data-toggle="collapse" data-target=".getCodeBarres .collapse">
<h2>getCodeBarres()
        </h2>
<pre>getCodeBarres() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getIdGroupe" id="getIdGroupe"></a><div class="element clickable method public getIdGroupe" data-toggle="collapse" data-target=".getIdGroupe .collapse">
<h2>getIdGroupe()
        </h2>
<pre>getIdGroupe() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getIdProduit" id="getIdProduit"></a><div class="element clickable method public getIdProduit" data-toggle="collapse" data-target=".getIdProduit .collapse">
<h2>getIdProduit()
        </h2>
<pre>getIdProduit() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getIdType" id="getIdType"></a><div class="element clickable method public getIdType" data-toggle="collapse" data-target=".getIdType .collapse">
<h2>getIdType()
        </h2>
<pre>getIdType() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getName" id="getName"></a><div class="element clickable method public getName" data-toggle="collapse" data-target=".getName .collapse">
<h2>getName()
        </h2>
<pre>getName() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="getQuantite" id="getQuantite"></a><div class="element clickable method public getQuantite" data-toggle="collapse" data-target=".getQuantite .collapse">
<h2>getQuantite()
        </h2>
<pre>getQuantite() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="save" id="save"></a><div class="element clickable method public save" data-toggle="collapse" data-target=".save .collapse">
<h2>Sauvegarde le produit dans la BDD</h2>
<pre>save() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="setCodeBarres" id="setCodeBarres"></a><div class="element clickable method public setCodeBarres" data-toggle="collapse" data-target=".setCodeBarres .collapse">
<h2>setCodeBarres()
        </h2>
<pre>setCodeBarres($cb) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$cb</h4>
<code></code>
</div>
</div></div>
</div>
<a name="setIdGroupe" id="setIdGroupe"></a><div class="element clickable method public setIdGroupe" data-toggle="collapse" data-target=".setIdGroupe .collapse">
<h2>setIdGroupe()
        </h2>
<pre>setIdGroupe($id) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$id</h4>
<code></code>
</div>
</div></div>
</div>
<a name="setIdProduit" id="setIdProduit"></a><div class="element clickable method public setIdProduit" data-toggle="collapse" data-target=".setIdProduit .collapse">
<h2>setIdProduit()
        </h2>
<pre>setIdProduit($id) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$id</h4>
<code></code>
</div>
</div></div>
</div>
<a name="setIdType" id="setIdType"></a><div class="element clickable method public setIdType" data-toggle="collapse" data-target=".setIdType .collapse">
<h2>setIdType()
        </h2>
<pre>setIdType($id) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$id</h4>
<code></code>
</div>
</div></div>
</div>
<a name="setName" id="setName"></a><div class="element clickable method public setName" data-toggle="collapse" data-target=".setName .collapse">
<h2>setName()
        </h2>
<pre>setName($name) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$name</h4>
<code></code>
</div>
</div></div>
</div>
<a name="setQuantite" id="setQuantite"></a><div class="element clickable method public setQuantite" data-toggle="collapse" data-target=".setQuantite .collapse">
<h2>setQuantite()
        </h2>
<pre>setQuantite($q) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$q</h4>
<code></code>
</div>
</div></div>
</div>
<a name="update" id="update"></a><div class="element clickable method public update" data-toggle="collapse" data-target=".update .collapse">
<h2>Met à jour le produit dans la BDD</h2>
<pre>update() </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="vente" id="vente"></a><div class="element clickable method public vente" data-toggle="collapse" data-target=".vente .collapse">
<h2>Vente du produit en quantité $nbr au client $client avec vente normale, spéciale ou espèce</h2>
<pre>vente(\Quantité $nbr, \Login $client, \0=vente $type_vente) </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$nbr</h4>
<code>\Quantité</code><p>de produit vendu $nbr</p>
</div>
<div class="subelement argument">
<h4>$client</h4>
<code>\Login</code><p>du client $client</p>
</div>
<div class="subelement argument">
<h4>$type_vente</h4>
<code>\0=vente</code><p>espèce, 1=normale, 2=spéciale $type_vente</p>
</div>
<h3>Exceptions</h3>
<table class="table table-bordered"><tr>
<th><code>\Zend_Exception</code></th>
<td></td>
</tr></table>
</div></div>
</div>
<h3>
<i class="icon-custom icon-property"></i> Properties</h3>
<a name="%24code_barres" id="$code_barres"> </a><div class="element clickable property protected $code_barres" data-toggle="collapse" data-target=".$code_barres .collapse">
<h2>$code_barres</h2>
<pre>$code_barres </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="%24id_groupe" id="$id_groupe"> </a><div class="element clickable property protected $id_groupe" data-toggle="collapse" data-target=".$id_groupe .collapse">
<h2>$id_groupe</h2>
<pre>$id_groupe </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="%24id_produit" id="$id_produit"> </a><div class="element clickable property protected $id_produit" data-toggle="collapse" data-target=".$id_produit .collapse">
<h2>$id_produit</h2>
<pre>$id_produit </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="%24id_type" id="$id_type"> </a><div class="element clickable property protected $id_type" data-toggle="collapse" data-target=".$id_type .collapse">
<h2>$id_type</h2>
<pre>$id_type </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="%24nom" id="$nom"> </a><div class="element clickable property protected $nom" data-toggle="collapse" data-target=".$nom .collapse">
<h2>$nom</h2>
<pre>$nom </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<a name="%24quantite" id="$quantite"> </a><div class="element clickable property protected $quantite" data-toggle="collapse" data-target=".$quantite .collapse">
<h2>$quantite</h2>
<pre>$quantite </pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
            generated on 2012-06-06T16:55:24+02:00.<br></footer></div>
</div>
</body>
</html>
